//
//  ActivityTableViewCell.m
//  DefendHealth
//
//  Created by 吾诺翰卓003 on 17/2/23.
//  Copyright © 2017年 iMacOne. All rights reserved.
//

#import "ActivityTableViewCell.h"
#import "Header.h"
@implementation ActivityTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        UIImageView *img = [UIImageView new];
        img.frame = CGRectMake(10, 12, WindowWidth-20, 159);
        img.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:img];
        
        UILabel *lab1 = [UILabel new];
        lab1.frame = CGRectMake(10, 55, WindowWidth-20, 17);
        lab1.text = @"#虚拟跑1#";
        lab1.font = FONT(17);
        lab1.textColor = UIColorFromRGB(0xe4e4e4);
        lab1.textAlignment = 1;
        [self.contentView addSubview:lab1];
        
        UILabel *lab2 = [UILabel new];
        lab2.frame = CGRectMake(10, kMaxY(lab1.frame)+20, WindowWidth-20, 12);
        lab2.text = @"已有250人参加";
        lab2.font = FONT(12);
        lab2.textColor = UIColorFromRGB(0xe4e4e4);
        lab2.textAlignment = 1;
        [self.contentView addSubview:lab2];
    }
    return self;
}
@end
